import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/system/Management/list',
    method: 'get',
    params: query
  })
}

export function listYrz(query) {
  return request({

    url: '/system/Management/listYrz',
    method: 'get',
    params: query
  })
}



//回显
export function selectById(id) {
  return request({
    url: '/system/Management/selectById'+'/'+id,
    method: 'get'
  })
}

// 统计数量
export function statisticsNum() {
  return request({
    url: '/system/Management/statisticsNum',
    method: 'get'

  })
}

// 确认入职
export function updateManagement(data) {
  return request({
    url: '/system/Management',
    method: 'put',
    data: data
  })
}

// 放弃入职
export function giveUp(id,soeliminate) {
  return request({
    url: '/system/Management/giveUp'+'/'+id+'/'+soeliminate,
    method: 'get'
  })
}

// 入职登记
export function regiSter(data) {
  return request({
    url: '/system/Management/regiSter',
    method: 'put',
    data: data
  })
}

// RPO入职
export function updateRPO(id,employmentDate) {
  return request({
    url: '/system/Management/updateRPO'+'/'+id+'/'+employmentDate,
    method: 'get'
  })
}

// 转移到待入职
export function updateStatus(id) {
  return request({
    url: '/system/Management/updateStatus'+'/'+id,
    method: 'get'
  })
}

// 转移到待入职
export function deleteId(id,isDelete) {
  return request({
    url: '/system/Management'+'/'+id+'/'+isDelete,
    method: 'delete'
  })
}

// 合同部署添加
export function hetAdd(data) {
  return request({
    url: '/system/contract/hetAdd',
    method: 'put',
    data: data
  })
}

// 入职定薪添加
export function rzdxAdd(data) {
  return request({
    url: '/system/Management/rzdxAdd',
    method: 'put',
    data: data
  })
}

/*文件上传*/
export function uploadFile2(data) {
  return request({
    url: '/system/contract/uploadFile2',
    method: 'post',
    data: data
  })
}

// 合同签署查询
export function hetById(id) {
  return request({
    url: '/system/contract/hetById'+'/'+id,
    method: 'get'
  })
}



// 社保定薪查询
export function rzdxfindById(id) {
  return request({
    url: '/system/salary/rzdxfindById'+'/'+id,
    method: 'get'
  })
}



// 入职定薪修改
export function updaterzdx(data) {
  return request({
    url: '/system/salary/updaterzdx',
    method: 'put',
    data: data
  })
}












